package com.lifesea.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BaseDeptExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BaseDeptExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDeptIdIsNull() {
            addCriterion("DEPT_ID is null");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNotNull() {
            addCriterion("DEPT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDeptIdEqualTo(Integer value) {
            addCriterion("DEPT_ID =", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotEqualTo(Integer value) {
            addCriterion("DEPT_ID <>", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThan(Integer value) {
            addCriterion("DEPT_ID >", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEPT_ID >=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThan(Integer value) {
            addCriterion("DEPT_ID <", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThanOrEqualTo(Integer value) {
            addCriterion("DEPT_ID <=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIn(List<Integer> values) {
            addCriterion("DEPT_ID in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotIn(List<Integer> values) {
            addCriterion("DEPT_ID not in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_ID between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_ID not between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andHosIdIsNull() {
            addCriterion("HOS_ID is null");
            return (Criteria) this;
        }

        public Criteria andHosIdIsNotNull() {
            addCriterion("HOS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andHosIdEqualTo(Integer value) {
            addCriterion("HOS_ID =", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotEqualTo(Integer value) {
            addCriterion("HOS_ID <>", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdGreaterThan(Integer value) {
            addCriterion("HOS_ID >", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("HOS_ID >=", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdLessThan(Integer value) {
            addCriterion("HOS_ID <", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdLessThanOrEqualTo(Integer value) {
            addCriterion("HOS_ID <=", value, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdIn(List<Integer> values) {
            addCriterion("HOS_ID in", values, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotIn(List<Integer> values) {
            addCriterion("HOS_ID not in", values, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdBetween(Integer value1, Integer value2) {
            addCriterion("HOS_ID between", value1, value2, "hosId");
            return (Criteria) this;
        }

        public Criteria andHosIdNotBetween(Integer value1, Integer value2) {
            addCriterion("HOS_ID not between", value1, value2, "hosId");
            return (Criteria) this;
        }

        public Criteria andBranchIdIsNull() {
            addCriterion("BRANCH_ID is null");
            return (Criteria) this;
        }

        public Criteria andBranchIdIsNotNull() {
            addCriterion("BRANCH_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBranchIdEqualTo(Integer value) {
            addCriterion("BRANCH_ID =", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotEqualTo(Integer value) {
            addCriterion("BRANCH_ID <>", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdGreaterThan(Integer value) {
            addCriterion("BRANCH_ID >", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("BRANCH_ID >=", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdLessThan(Integer value) {
            addCriterion("BRANCH_ID <", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdLessThanOrEqualTo(Integer value) {
            addCriterion("BRANCH_ID <=", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdIn(List<Integer> values) {
            addCriterion("BRANCH_ID in", values, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotIn(List<Integer> values) {
            addCriterion("BRANCH_ID not in", values, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdBetween(Integer value1, Integer value2) {
            addCriterion("BRANCH_ID between", value1, value2, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotBetween(Integer value1, Integer value2) {
            addCriterion("BRANCH_ID not between", value1, value2, "branchId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdIsNull() {
            addCriterion("HIS_DEPT_ID is null");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdIsNotNull() {
            addCriterion("HIS_DEPT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdEqualTo(String value) {
            addCriterion("HIS_DEPT_ID =", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdNotEqualTo(String value) {
            addCriterion("HIS_DEPT_ID <>", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdGreaterThan(String value) {
            addCriterion("HIS_DEPT_ID >", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdGreaterThanOrEqualTo(String value) {
            addCriterion("HIS_DEPT_ID >=", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdLessThan(String value) {
            addCriterion("HIS_DEPT_ID <", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdLessThanOrEqualTo(String value) {
            addCriterion("HIS_DEPT_ID <=", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdLike(String value) {
            addCriterion("HIS_DEPT_ID like", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdNotLike(String value) {
            addCriterion("HIS_DEPT_ID not like", value, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdIn(List<String> values) {
            addCriterion("HIS_DEPT_ID in", values, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdNotIn(List<String> values) {
            addCriterion("HIS_DEPT_ID not in", values, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdBetween(String value1, String value2) {
            addCriterion("HIS_DEPT_ID between", value1, value2, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andHisDeptIdNotBetween(String value1, String value2) {
            addCriterion("HIS_DEPT_ID not between", value1, value2, "hisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdIsNull() {
            addCriterion("PARENT_HIS_DEPT_ID is null");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdIsNotNull() {
            addCriterion("PARENT_HIS_DEPT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdEqualTo(String value) {
            addCriterion("PARENT_HIS_DEPT_ID =", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdNotEqualTo(String value) {
            addCriterion("PARENT_HIS_DEPT_ID <>", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdGreaterThan(String value) {
            addCriterion("PARENT_HIS_DEPT_ID >", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdGreaterThanOrEqualTo(String value) {
            addCriterion("PARENT_HIS_DEPT_ID >=", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdLessThan(String value) {
            addCriterion("PARENT_HIS_DEPT_ID <", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdLessThanOrEqualTo(String value) {
            addCriterion("PARENT_HIS_DEPT_ID <=", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdLike(String value) {
            addCriterion("PARENT_HIS_DEPT_ID like", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdNotLike(String value) {
            addCriterion("PARENT_HIS_DEPT_ID not like", value, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdIn(List<String> values) {
            addCriterion("PARENT_HIS_DEPT_ID in", values, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdNotIn(List<String> values) {
            addCriterion("PARENT_HIS_DEPT_ID not in", values, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdBetween(String value1, String value2) {
            addCriterion("PARENT_HIS_DEPT_ID between", value1, value2, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andParentHisDeptIdNotBetween(String value1, String value2) {
            addCriterion("PARENT_HIS_DEPT_ID not between", value1, value2, "parentHisDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdIsNull() {
            addCriterion("GB_DEPT_ID is null");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdIsNotNull() {
            addCriterion("GB_DEPT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdEqualTo(String value) {
            addCriterion("GB_DEPT_ID =", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdNotEqualTo(String value) {
            addCriterion("GB_DEPT_ID <>", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdGreaterThan(String value) {
            addCriterion("GB_DEPT_ID >", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdGreaterThanOrEqualTo(String value) {
            addCriterion("GB_DEPT_ID >=", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdLessThan(String value) {
            addCriterion("GB_DEPT_ID <", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdLessThanOrEqualTo(String value) {
            addCriterion("GB_DEPT_ID <=", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdLike(String value) {
            addCriterion("GB_DEPT_ID like", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdNotLike(String value) {
            addCriterion("GB_DEPT_ID not like", value, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdIn(List<String> values) {
            addCriterion("GB_DEPT_ID in", values, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdNotIn(List<String> values) {
            addCriterion("GB_DEPT_ID not in", values, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdBetween(String value1, String value2) {
            addCriterion("GB_DEPT_ID between", value1, value2, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andGbDeptIdNotBetween(String value1, String value2) {
            addCriterion("GB_DEPT_ID not between", value1, value2, "gbDeptId");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNull() {
            addCriterion("DEPT_NAME is null");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNotNull() {
            addCriterion("DEPT_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andDeptNameEqualTo(String value) {
            addCriterion("DEPT_NAME =", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotEqualTo(String value) {
            addCriterion("DEPT_NAME <>", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThan(String value) {
            addCriterion("DEPT_NAME >", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("DEPT_NAME >=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThan(String value) {
            addCriterion("DEPT_NAME <", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThanOrEqualTo(String value) {
            addCriterion("DEPT_NAME <=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLike(String value) {
            addCriterion("DEPT_NAME like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotLike(String value) {
            addCriterion("DEPT_NAME not like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameIn(List<String> values) {
            addCriterion("DEPT_NAME in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotIn(List<String> values) {
            addCriterion("DEPT_NAME not in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameBetween(String value1, String value2) {
            addCriterion("DEPT_NAME between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotBetween(String value1, String value2) {
            addCriterion("DEPT_NAME not between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("DESCRIPTION =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("DESCRIPTION <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("DESCRIPTION >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("DESCRIPTION <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("DESCRIPTION like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("DESCRIPTION not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("DESCRIPTION in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("DESCRIPTION not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("DESCRIPTION between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("DESCRIPTION not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andMaxAgeIsNull() {
            addCriterion("MAX_AGE is null");
            return (Criteria) this;
        }

        public Criteria andMaxAgeIsNotNull() {
            addCriterion("MAX_AGE is not null");
            return (Criteria) this;
        }

        public Criteria andMaxAgeEqualTo(Integer value) {
            addCriterion("MAX_AGE =", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeNotEqualTo(Integer value) {
            addCriterion("MAX_AGE <>", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeGreaterThan(Integer value) {
            addCriterion("MAX_AGE >", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("MAX_AGE >=", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeLessThan(Integer value) {
            addCriterion("MAX_AGE <", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeLessThanOrEqualTo(Integer value) {
            addCriterion("MAX_AGE <=", value, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeIn(List<Integer> values) {
            addCriterion("MAX_AGE in", values, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeNotIn(List<Integer> values) {
            addCriterion("MAX_AGE not in", values, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeBetween(Integer value1, Integer value2) {
            addCriterion("MAX_AGE between", value1, value2, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMaxAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("MAX_AGE not between", value1, value2, "maxAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeIsNull() {
            addCriterion("MIN_AGE is null");
            return (Criteria) this;
        }

        public Criteria andMinAgeIsNotNull() {
            addCriterion("MIN_AGE is not null");
            return (Criteria) this;
        }

        public Criteria andMinAgeEqualTo(Integer value) {
            addCriterion("MIN_AGE =", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeNotEqualTo(Integer value) {
            addCriterion("MIN_AGE <>", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeGreaterThan(Integer value) {
            addCriterion("MIN_AGE >", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("MIN_AGE >=", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeLessThan(Integer value) {
            addCriterion("MIN_AGE <", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeLessThanOrEqualTo(Integer value) {
            addCriterion("MIN_AGE <=", value, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeIn(List<Integer> values) {
            addCriterion("MIN_AGE in", values, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeNotIn(List<Integer> values) {
            addCriterion("MIN_AGE not in", values, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeBetween(Integer value1, Integer value2) {
            addCriterion("MIN_AGE between", value1, value2, "minAge");
            return (Criteria) this;
        }

        public Criteria andMinAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("MIN_AGE not between", value1, value2, "minAge");
            return (Criteria) this;
        }

        public Criteria andExpertiseIsNull() {
            addCriterion("EXPERTISE is null");
            return (Criteria) this;
        }

        public Criteria andExpertiseIsNotNull() {
            addCriterion("EXPERTISE is not null");
            return (Criteria) this;
        }

        public Criteria andExpertiseEqualTo(String value) {
            addCriterion("EXPERTISE =", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseNotEqualTo(String value) {
            addCriterion("EXPERTISE <>", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseGreaterThan(String value) {
            addCriterion("EXPERTISE >", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseGreaterThanOrEqualTo(String value) {
            addCriterion("EXPERTISE >=", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseLessThan(String value) {
            addCriterion("EXPERTISE <", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseLessThanOrEqualTo(String value) {
            addCriterion("EXPERTISE <=", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseLike(String value) {
            addCriterion("EXPERTISE like", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseNotLike(String value) {
            addCriterion("EXPERTISE not like", value, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseIn(List<String> values) {
            addCriterion("EXPERTISE in", values, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseNotIn(List<String> values) {
            addCriterion("EXPERTISE not in", values, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseBetween(String value1, String value2) {
            addCriterion("EXPERTISE between", value1, value2, "expertise");
            return (Criteria) this;
        }

        public Criteria andExpertiseNotBetween(String value1, String value2) {
            addCriterion("EXPERTISE not between", value1, value2, "expertise");
            return (Criteria) this;
        }

        public Criteria andDeptLevelIsNull() {
            addCriterion("DEPT_LEVEL is null");
            return (Criteria) this;
        }

        public Criteria andDeptLevelIsNotNull() {
            addCriterion("DEPT_LEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andDeptLevelEqualTo(Integer value) {
            addCriterion("DEPT_LEVEL =", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelNotEqualTo(Integer value) {
            addCriterion("DEPT_LEVEL <>", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelGreaterThan(Integer value) {
            addCriterion("DEPT_LEVEL >", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEPT_LEVEL >=", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelLessThan(Integer value) {
            addCriterion("DEPT_LEVEL <", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelLessThanOrEqualTo(Integer value) {
            addCriterion("DEPT_LEVEL <=", value, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelIn(List<Integer> values) {
            addCriterion("DEPT_LEVEL in", values, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelNotIn(List<Integer> values) {
            addCriterion("DEPT_LEVEL not in", values, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_LEVEL between", value1, value2, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andDeptLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_LEVEL not between", value1, value2, "deptLevel");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("ADDRESS is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("ADDRESS is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("ADDRESS =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("ADDRESS <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("ADDRESS >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ADDRESS >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("ADDRESS <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("ADDRESS <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("ADDRESS like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("ADDRESS not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("ADDRESS in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("ADDRESS not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("ADDRESS between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("ADDRESS not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andShowNumIsNull() {
            addCriterion("SHOW_NUM is null");
            return (Criteria) this;
        }

        public Criteria andShowNumIsNotNull() {
            addCriterion("SHOW_NUM is not null");
            return (Criteria) this;
        }

        public Criteria andShowNumEqualTo(Integer value) {
            addCriterion("SHOW_NUM =", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumNotEqualTo(Integer value) {
            addCriterion("SHOW_NUM <>", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumGreaterThan(Integer value) {
            addCriterion("SHOW_NUM >", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("SHOW_NUM >=", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumLessThan(Integer value) {
            addCriterion("SHOW_NUM <", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumLessThanOrEqualTo(Integer value) {
            addCriterion("SHOW_NUM <=", value, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumIn(List<Integer> values) {
            addCriterion("SHOW_NUM in", values, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumNotIn(List<Integer> values) {
            addCriterion("SHOW_NUM not in", values, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumBetween(Integer value1, Integer value2) {
            addCriterion("SHOW_NUM between", value1, value2, "showNum");
            return (Criteria) this;
        }

        public Criteria andShowNumNotBetween(Integer value1, Integer value2) {
            addCriterion("SHOW_NUM not between", value1, value2, "showNum");
            return (Criteria) this;
        }

        public Criteria andPictureIsNull() {
            addCriterion("PICTURE is null");
            return (Criteria) this;
        }

        public Criteria andPictureIsNotNull() {
            addCriterion("PICTURE is not null");
            return (Criteria) this;
        }

        public Criteria andPictureEqualTo(String value) {
            addCriterion("PICTURE =", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotEqualTo(String value) {
            addCriterion("PICTURE <>", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureGreaterThan(String value) {
            addCriterion("PICTURE >", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureGreaterThanOrEqualTo(String value) {
            addCriterion("PICTURE >=", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLessThan(String value) {
            addCriterion("PICTURE <", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLessThanOrEqualTo(String value) {
            addCriterion("PICTURE <=", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLike(String value) {
            addCriterion("PICTURE like", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotLike(String value) {
            addCriterion("PICTURE not like", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureIn(List<String> values) {
            addCriterion("PICTURE in", values, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotIn(List<String> values) {
            addCriterion("PICTURE not in", values, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureBetween(String value1, String value2) {
            addCriterion("PICTURE between", value1, value2, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotBetween(String value1, String value2) {
            addCriterion("PICTURE not between", value1, value2, "picture");
            return (Criteria) this;
        }

        public Criteria andIsBookingIsNull() {
            addCriterion("IS_BOOKING is null");
            return (Criteria) this;
        }

        public Criteria andIsBookingIsNotNull() {
            addCriterion("IS_BOOKING is not null");
            return (Criteria) this;
        }

        public Criteria andIsBookingEqualTo(Short value) {
            addCriterion("IS_BOOKING =", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingNotEqualTo(Short value) {
            addCriterion("IS_BOOKING <>", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingGreaterThan(Short value) {
            addCriterion("IS_BOOKING >", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingGreaterThanOrEqualTo(Short value) {
            addCriterion("IS_BOOKING >=", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingLessThan(Short value) {
            addCriterion("IS_BOOKING <", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingLessThanOrEqualTo(Short value) {
            addCriterion("IS_BOOKING <=", value, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingIn(List<Short> values) {
            addCriterion("IS_BOOKING in", values, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingNotIn(List<Short> values) {
            addCriterion("IS_BOOKING not in", values, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingBetween(Short value1, Short value2) {
            addCriterion("IS_BOOKING between", value1, value2, "isBooking");
            return (Criteria) this;
        }

        public Criteria andIsBookingNotBetween(Short value1, Short value2) {
            addCriterion("IS_BOOKING not between", value1, value2, "isBooking");
            return (Criteria) this;
        }

        public Criteria andDeptStatusIsNull() {
            addCriterion("DEPT_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andDeptStatusIsNotNull() {
            addCriterion("DEPT_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andDeptStatusEqualTo(Integer value) {
            addCriterion("DEPT_STATUS =", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusNotEqualTo(Integer value) {
            addCriterion("DEPT_STATUS <>", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusGreaterThan(Integer value) {
            addCriterion("DEPT_STATUS >", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEPT_STATUS >=", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusLessThan(Integer value) {
            addCriterion("DEPT_STATUS <", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusLessThanOrEqualTo(Integer value) {
            addCriterion("DEPT_STATUS <=", value, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusIn(List<Integer> values) {
            addCriterion("DEPT_STATUS in", values, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusNotIn(List<Integer> values) {
            addCriterion("DEPT_STATUS not in", values, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_STATUS between", value1, value2, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andDeptStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("DEPT_STATUS not between", value1, value2, "deptStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("MODIFY_TIME is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("MODIFY_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("MODIFY_TIME =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("MODIFY_TIME <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("MODIFY_TIME >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("MODIFY_TIME >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("MODIFY_TIME <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("MODIFY_TIME <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("MODIFY_TIME in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("MODIFY_TIME not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("MODIFY_TIME between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("MODIFY_TIME not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeIsNull() {
            addCriterion("OFF_TIME is null");
            return (Criteria) this;
        }

        public Criteria andOffTimeIsNotNull() {
            addCriterion("OFF_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andOffTimeEqualTo(Date value) {
            addCriterion("OFF_TIME =", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeNotEqualTo(Date value) {
            addCriterion("OFF_TIME <>", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeGreaterThan(Date value) {
            addCriterion("OFF_TIME >", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("OFF_TIME >=", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeLessThan(Date value) {
            addCriterion("OFF_TIME <", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeLessThanOrEqualTo(Date value) {
            addCriterion("OFF_TIME <=", value, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeIn(List<Date> values) {
            addCriterion("OFF_TIME in", values, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeNotIn(List<Date> values) {
            addCriterion("OFF_TIME not in", values, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeBetween(Date value1, Date value2) {
            addCriterion("OFF_TIME between", value1, value2, "offTime");
            return (Criteria) this;
        }

        public Criteria andOffTimeNotBetween(Date value1, Date value2) {
            addCriterion("OFF_TIME not between", value1, value2, "offTime");
            return (Criteria) this;
        }

        public Criteria andGenderIsNull() {
            addCriterion("GENDER is null");
            return (Criteria) this;
        }

        public Criteria andGenderIsNotNull() {
            addCriterion("GENDER is not null");
            return (Criteria) this;
        }

        public Criteria andGenderEqualTo(Integer value) {
            addCriterion("GENDER =", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotEqualTo(Integer value) {
            addCriterion("GENDER <>", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThan(Integer value) {
            addCriterion("GENDER >", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderGreaterThanOrEqualTo(Integer value) {
            addCriterion("GENDER >=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThan(Integer value) {
            addCriterion("GENDER <", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderLessThanOrEqualTo(Integer value) {
            addCriterion("GENDER <=", value, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderIn(List<Integer> values) {
            addCriterion("GENDER in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotIn(List<Integer> values) {
            addCriterion("GENDER not in", values, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderBetween(Integer value1, Integer value2) {
            addCriterion("GENDER between", value1, value2, "gender");
            return (Criteria) this;
        }

        public Criteria andGenderNotBetween(Integer value1, Integer value2) {
            addCriterion("GENDER not between", value1, value2, "gender");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table base_dept
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}